home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing;
-
- import com.sun.java.accessibility.AccessibleContext;
- import java.awt.Component;
- import java.awt.Dimension;
-
- public class Box$Filler extends Component {
- private Dimension reqMin;
- private Dimension reqPref;
- private Dimension reqMax;
- protected AccessibleContext accessibleContext = null;
-
- public Box$Filler(Dimension min, Dimension pref, Dimension max) {
- this.reqMin = min;
- this.reqPref = pref;
- this.reqMax = max;
- }
-
- public void changeShape(Dimension min, Dimension pref, Dimension max) {
- this.reqMin = min;
- this.reqPref = pref;
- this.reqMax = max;
- ((Component)this).invalidate();
- }
-
- public Dimension getMinimumSize() {
- return this.reqMin;
- }
-
- public Dimension getPreferredSize() {
- return this.reqPref;
- }
-
- public Dimension getMaximumSize() {
- return this.reqMax;
- }
-
- public AccessibleContext getAccessibleContext() {
- if (this.accessibleContext == null) {
- this.accessibleContext = new Box.Filler.AccessibleBoxFiller(this);
- }
-
- return this.accessibleContext;
- }
- }
-